<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	template="/template/template.xhtml">
	
	<ui:define name="header">
      <ui:include src="/util/headerLogin.xhtml" />
	</ui:define>
	
	<ui:define name="content">
	<div id="login">
	<h:form>
		<p:messages />
		<p:panelGrid columns="2">
			<h:outputText value="Username: " />
			<h:inputText value="#{authenticator.username}" />
			<h:outputText value="Password: " />
			<h:inputText value="#{authenticator.password}" />
		</p:panelGrid>

		<p:commandButton value="Logar!" action="#{authenticator.login}" />
	</h:form>
	</div>
	</ui:define>
	
	
	
</ui:composition>